package com.example.day03;

public class StaticPolymorphism {

    void m(){}
    void m(int i){ return; }
    void m(int j, double d){ return; }
    void m(double d, int j){ return; }


    public static void main(String[] args) {
        StaticPolymorphism sp = new StaticPolymorphism();
        sp.m();
        sp.m(1);
        sp.m(1, 2D);
        sp.m(1D, 2);
    }
}

class Parent {

    void method() {
        System.out.println("method in com.example.day03.Parent class.");
    }
}

class Child extends Parent {

    void method(int i) {
        System.out.println("method in com.example.day03.Child class.");
    }

    public static void main(String[] args) {
        Child c = new Child();
        c.method();
        c.method(1);
    }
}
